var t = getApp();

Component({
    properties: {},
    data: {},
    methods: {
        catchSubmit: function(e) {
            console.log(e);
            try {
                if ("the formId is a mock one" != e.detail.formId) {
                    var o = t.getNetAddresss("order.mini-app.form-id"), c = "", r = e.detail.formId;
                    try {
                        var a = wx.getStorageSync("uid");
                        a && (c = a);
                    } catch (e) {}
                    o += "&formID=" + r, o += "&memberId=" + c, t._getNetWork({
                        url: o,
                        success: function(t) {
                            var e = t.data;
                            1 == e.result && console.log(e.result);
                        },
                        fail: function(t) {
                            console.log(t);
                        }
                    });
                }
            } catch (t) {}
            this.callback(e);
        },
        callback: function(t) {
            try {
                this.triggerEvent("callback", t);
            } catch (t) {}
        }
    }
});